#include <stdio.h>
#include "log.h"


int main(int argc, char *argv[])
{
	printf("Hello, world\n");
	
	wwLog::set(wwLog::INFO, wwLog::VERBOSE);
	
	wwLog::verbose("This is a verbose %d", __LINE__);
	wwLog::verbose("This is a verbose test");

	wwLog::debug("This is a debug %d", __LINE__);
	wwLog::debug("This is a debug test");

	wwLog::info("This is a info %d", __LINE__);
	wwLog::info("This is a info test");

	wwLog::warn("This is a warn %d", __LINE__);
	wwLog::warn("This is a warn test");

	wwLog::error("This is a error %d", __LINE__);
	wwLog::error("This is a error test");

	vector<std::pair<int, string> > logs;
	wwLog::reads(logs);
	vector<std::pair<int, string> >::iterator iter;
	for(iter = logs.begin(); iter != logs.end(); ++iter){
		printf("%s, %s\n", wwLog::int2str(iter->first).c_str(), iter->second.c_str());
	}

	return 0;
}
